/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.sdkj.dspservice.modules.sys.dao;

import com.sdkj.dspservice.common.base.dao.CrudDao;
import com.sdkj.dspservice.modules.sys.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 用户——角色DAO接口
 * @author tm
 */
public interface UserRoleDao extends CrudDao<UserRole> {

    @Update({"update sys_user_role set delete_flag = '1' where user_id = #{userId}"})
    int deleteByUserId(@Param("userId") String userId);
}
